package com.ruoyi.zhhq.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户对象 zhhq_user
 * 
 * @author Anthony Lu
 * @date 2022-11-01
 */
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private String uid;

    /** 用户名 */
    @Excel(name = "用户名")
    private String uname;

    /** 用户真实姓名 */
    @Excel(name = "用户真实姓名")
    private String trueName;

    /** 用户密码 */
    @Excel(name = "用户密码")
    private String passwd;

    /** 用户性别 */
    @Excel(name = "用户性别")
    private String sex;

    /** 用户生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "用户生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 用户分组 */
    @Excel(name = "用户分组")
    private String ucateId;

    /** 用户手机 */
    @Excel(name = "用户手机")
    private String phone;

    /** 状态（0在职 1离职） */
    @Excel(name = "状态", readConverterExp = "0=在职,1=离职")
    private String status;

    private Usercate usercate;

    private SysUser sysUser;

    public SysUser getSysUser() {
		return sysUser;
	}

	public void setSysUser(SysUser sysUser) {
		this.sysUser = sysUser;
	}

	public Usercate getUsercate() {
        return usercate;
    }

    public void setUsercate(Usercate usercate) {
        this.usercate = usercate;
    }

    public void setUid(String uid)
    {
        this.uid = uid;
    }

    public String getUid() 
    {
        return uid;
    }
    public void setUname(String uname) 
    {
        this.uname = uname;
    }

    public String getUname() 
    {
        return uname;
    }
    public void setTrueName(String trueName) 
    {
        this.trueName = trueName;
    }

    public String getTrueName() 
    {
        return trueName;
    }
    public void setPasswd(String passwd) 
    {
        this.passwd = passwd;
    }

    public String getPasswd() 
    {
        return passwd;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setUcateId(String ucateId) 
    {
        this.ucateId = ucateId;
    }

    public String getUcateId() 
    {
        return ucateId;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

	@Override
	public String toString() {
		return "User [uid=" + uid + ", uname=" + uname + ", trueName=" + trueName + ", passwd=" + passwd + ", sex="
				+ sex + ", birthday=" + birthday + ", ucateId=" + ucateId + ", phone=" + phone + ", status=" + status
				+ ", usercate=" + usercate + ", sysUser=" + sysUser + "]";
	}

    
}
